package com.libnetwork

import okhttp3.Response

class HttpException(val response: Response) : RuntimeException() {
    val code: Int
        get() = response.code

    override val message: String
        get() = "HTTP ${response.code} ${response.message}"
}